#include <iostream>
#include <json/json.h>

using namespace std;

int test() {
	cout << "new json value : " << endl;
	Json::Value value;
	
	value["ip"] = "192.168.1.1";
	value["port"] = 8888;
	value["id"] = 0;

	cout << "to string " << endl;

	cout << value.toStyledString() << endl;
}


int main() {
	test();
	return 0;
}
